<?php
//model模型层做的是业务模型
require '../dao/ridegamerdao.php';

class ridegamermodel{
	
	
	private $dao;

	
	//用户查询
	public function ridegamerquery($ridegamerid,$ming,$zuo,$jia){
		
		$dao=new ridegamerdao();
		$rs=$dao->Xiugai($ridegamerid,$ming,$zuo,$jia);
		if(empty($rs)){
			//没有结果，说明没有该用户
			return 0;
		}
		else{			
			return $rs;
		}	
		
	}

	
	public function ridegamertian($ming,$level,$zuo,$jia,$img){//,$img
	
		$dao=new ridegamerdao();
		$rs=$dao->Tian($ming,$level,$zuo,$jia,$img);
		//var_dump($rs);
		if(empty($rs)){
			//没有结果，说明没有该用户
			return 0;
		}
		else{
			return $rs;
		}
	
 	}
}
?>